package com.acane.instagram.feature.notification

import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavHostController
import androidx.navigation.compose.composable


const val NOTIFICATION_ROUTE = "notification"


fun NavGraphBuilder.notificationScreen(
    navController: NavHostController,
    toProfile: (String) -> Unit,
    toPostDetail: (String, String?) -> Unit,
) {
    composable(NOTIFICATION_ROUTE)
    {
        NotificationRoute(
            navController = navController,
            toProfile = toProfile,
            toPostDetail = toPostDetail,
        )
    }
}

fun NavController.navigateToNotification(): Unit {
    navigate(NOTIFICATION_ROUTE)
}